#define HeatBlow_Variable

#include "userDef.h"

void HeatBlowAct(void)
{
    if (f_MotorErr == 0 && f_OutErr_Ub == 0 && f_ModeClash == 0 && f_Defrosting == 0)
    {
        if (b_power.run == ON && e_mode.run == MODEHEAT && f_RoomUnitOn == 1)
        {
            if (e_fanStep.run != FANSTOP)
            {
                f_HeatBlow = 1;
            }

            HeatOffBlowSec = 0;
            HeatOverBlowSec = 0;
        }
        else
        {
            if (f_HeatBlow == 1)
            {
                f_HeatBlow = 0;

                if (b_power.run == ON)
                {
                    HeatOffBlowSec = 0;
                    HeatOverBlowSec = BlownHeatWasteTime_1;
                }
                else
                {
                    HeatOverBlowSec = 0;
                    HeatOffBlowSec = BlownHeatWasteTime_2;
                }
            }
            else
            {
                f_HeatBlow = 0;
            }

            if (e_mode.run != MODEHEAT)
            {
                HeatOverBlowSec = 0;
            }
        }
    }
    else
    {
        f_HeatBlow = 0;
        HeatOffBlowSec = 0;
        HeatOverBlowSec = 0;
    }
}
